package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.DraftDealModifyRequest;
import com.chinaums.fsp.sdk.pgt.params.DraftDealModifyResponse;
/**
 * 汇票信息修改
 * @author hhh
 */
public class DraftInfoModifyTest extends BaseRequest{

	/* 测试汇票信息修改 */
	public void test1() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
//		RequestData.Builder builder = this.createRequestDataBuilder();
//		builder.setTransType(TransType.TRANSACTION_MODIFY_ORDER.getTransCode());
		long amount = 400;
		DraftDealModifyRequest data = DraftDealModifyRequest.newBuilder()
															.setOrigServerTransId("1101012019011509492900957483")
															.setOrigClientTransId("20190115094928141889")
															.setInvoiceAmount(amount)
															.setInvoiceNo("90000000000622")
															.build()
															;
		rf.transType(TransType.TRANSACTION_MODIFY_ORDER.getTransCode())
		.responseClass(DraftDealModifyResponse.class)
		.data(data)
		;
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
	}
	
	
}